package com.gk.panda.apis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gk.panda.apis.dto.DispatchButtonDto;
import com.gk.panda.pojo.Menu;
import com.gk.panda.pojo.MenuBtns;
import com.gk.panda.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    int deleteMenuByRoleId(@Param("roleId") int roleId);

    int dispatchMenuButton(@Param("btnDto") DispatchButtonDto dto);

    int getMenuIdByName(@Param("menuName") String menuName);

    List<MenuBtns> getPermissionById(@Param("id") Integer id);
}
